from flask_sqlalchemy import SQLAlchemy
import pymysql

pymysql.install_as_MySQLdb()

DB = SQLAlchemy()



def Setup(app):
    DB.init_app(app)

    from models import user
    from models import article
    from models import tag
    DB.create_all(app=app)
